package com.halflife.framework.domain;

import org.apache.ibatis.annotations.*;

import java.util.LinkedHashMap;
import java.util.List;

/**
 * Created by zhaoyf on 2019/1/14.
 */
public interface IRepository {

    @Update({"${sql}"})
    void update(@Param("sql") String sql);

    @Delete({"${sql}"})
    void delete(@Param("sql") String sql);

    @Select({"${sql}"})
    @ResultType(LinkedHashMap.class)
    List<LinkedHashMap<String, Object>> select(@Param("sql") String sql);


    List<?> selectMany(@Param("sql") String sql);


}
